<template>
  <div class="detail-info">
    <div class="task-title">任务信息</div>
    <div class="task-info">
      <span class="task-content-label">任务名称: </span>
      <span class="task-content-value">{{ TaskInfoStore.openTaskData.taskName }}</span>
    </div>
    <div class="task-info">
      <div class="task-content">
        <div>
          <span class="task-content-label">开始时间: </span>
          <span class="task-content-value">{{
            TaskInfoStore.openTaskData.beginDate
          }}</span>
        </div>
        <div>
          <span class="task-content-label">结束时间: </span>
          <span class="task-content-value">{{ TaskInfoStore.openTaskData.endDate }}</span>
        </div>
        <div></div>
      </div>
    </div>
    <div class="task-info">
      <span class="task-content-label">任务方式: </span>
      <span class="task-content-value">{{
        TaskInfoStore.openTaskData.taskMethodType
      }}</span>
    </div>
    <div class="task-info">
      <span class="task-content-label">可参与人员: </span>
      <span class="task-content-value"
        >共{{ TaskInfoStore.openTaskData.totalUserNum }}人可参与标注</span
      >
    </div>
    <div class="task-info">
      <span class="task-content-label">任务备注: </span>
      <span class="task-content-value">{{ TaskInfoStore.openTaskData.remark }}</span>
    </div>
  </div>
</template>

<script lang="ts" setup>
import * as Store from "@/store";
const TaskInfoStore = Store.useTaskInfo();
</script>

<style lang="less" scoped>
.detail-info {
  padding-top: 32px;
  padding-bottom: 33px;
  border-bottom: 1px solid #e8e8e8;
  .task-title {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 21px;
  }
  .task-info {
    margin-bottom: 21px;
    .task-content {
      display: flex;
      align-items: center;
      div {
        flex: 1;
      }
    }
    .task-content-label {
      font-weight: 400;
      font-size: 14px;
      line-height: 18px;
      color: #666;
    }
    .task-content-value {
      font-weight: 400;
      font-size: 14px;
      line-height: 18px;
      color: #333;
    }
  }
  .task-info:nth-last-of-type(1) {
    margin-bottom: 0px;
  }
}
</style>
